
<style>
.Js-record-list{
    padding: 0;
    margin: 0;
}
.search-box{
}
.search-box li {
  height: 0.8rem;
  line-height: 0.8rem;
  font-size: 0.16rem;
  color: #333333;
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  width:100%;
  border-bottom: 1px solid #f1f1f1;
}
.search-box li div {
  width: 33.33%;
  text-align: center;
}

</style>

    <section class="search-box">
        <ul class="Js-record-list">
            <li>
                <!--class="active"-->
                <div class="status">创建时间</div>
                <div class="price">拍品</div>
                <div class="time">数量</div>
            </li>

                <li ng-repeat="vo in pagedata.list" id="getlist" href="{{bv.url}}">
                    <div class="status">{{date(vo.create_time)}}</div>
                    <div class="time" style="white-space: nowrap;text-overflow: ellipsis;overflow: hidden;">{{vo.pname}}</div>
                    <div class="price">
                        {{vo.money}}
						
                    </div>
                </li>

        </ul>
    </section>
<script>
scope.pagedata.list=[];
scope.loading = true;  //状态标记
//滚动加载
var page = 1;
scope.getlist=function(first){
		if(first){
			var page = 1;
			scope.pagedata.list=[];
		}
		scope.pagedata.list=[];
		var params = {
					'plugin':'jy_jdpm',
					'action':'member.myfeetype3',
					'op':'list',
					'query':'page='+page,
					'callback':function(data){
							console.log('data');console.log(data);
							if(data.error !=1){
							 for (var i=0;i<data.list.length;i++){
									scope.pagedata.list.push(data.list[i]);
								}
								if(page >1){
									$("#getlist").animate({scrollTop:0},300);
								}
								page++;
								scope.loading = false;
								scope.$apply();
							}else{
								console.log('error');
							};
					}
		}
		scope.post_json(params);
}
		//首次加载
		scope.getlist(true);
		//滑到页面底部时加载下一页
		window.addEventListener('scroll', function () {
		   if(window.pageYOffset + window.innerHeight >= document.documentElement.scrollHeight){
				if(scope.loading){
					//scope.getlist();
				}
		   }
		});
</script>